﻿using System.Diagnostics;
using System.Windows.Input;
using Hx.Components.Models;

namespace Hx.Components
{
    public partial class LinkRow
    {
        public LinkRow(LinkModel link)
        {
            InitializeComponent();
            Top.Text = link.Title;
            LinkContent.Text = link.Link;
            Bottom.Text = link.AuthorName + " Share";
        }

        private void Top_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            Process.Start(LinkContent.Text);
        }
    }
}